package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import com.atguigu.jxc.vo.PCountVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseListDao {
    void save(PurchaseList purchaseList);

    List<PurchaseList> list(@Param("purchaseNumber")String purchaseNumber,
                                 @Param("supplierId")Integer supplierId,
                                 @Param("state")Integer state,
                                 @Param("sTime")String sTime,
                                 @Param("eTime")String eTime);

    void delete(Integer purchaseListId);

    void updateState(Integer purchaseListId);

    List<PCountVo> count(@Param("sTime")String sTime,
                         @Param("eTime")String eTime,
                         @Param("goodsTypeId")Integer goodsTypeId,
                         @Param("codeOrName")String codeOrName);
}
